package br.com.ep.generico.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "group", schema = "public")
public class Group implements Serializable{
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator (name = "seq_group", sequenceName = "public.seq_group", allocationSize = 1, initialValue = 1) 
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq_group")
	private Integer id;

	@Column(name = "name", length = 40)
	private String name;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
